﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="StudentManage.Web.index" %>
<%@ Register src="UserControl/UC_Login.ascx" tagname="UC_Login" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript" src="js/jcarousellite_1.0.1.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $(".nav_left li").removeClass("current");
        $(".nav_left li[navid='1']").addClass("current");
        $('.index_news_img').jCarouselLite({
            mouseWheel: true,
            auto    :   3000,
            speed   :   800,
            visible :   1,
            scroll  :   1
         });
    });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="content"> 
		<div class="wrap clearfix">
        	<div class="index_left clearfix">
            	<div class="index_top">
                    <uc1:UC_Login ID="UC_Login" runat="server" ShowID="0" />
                    <div class="index_news">
                    	<div class="index_news_img">
                            <ul>
                                <asp:Repeater ID="Rep_imglist" runat="server">
                                    <ItemTemplate>
                                        <li><img alt="<%#Eval("Title")%>" src="/Upload/image/<%#Eval("ImgPath")%>" width="500" height="140" /></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                        <div class="index_news_box">
                        	<div class="index_news_tit"><strong class="fl grey">动态新闻</strong><a href="NewsPage/NewsList.aspx" class="fr grey">更多</a></div>
                            <ul class="lst clearfix">
                                <asp:Repeater ID="RepNewsList" runat="server">
                                    <ItemTemplate>
                                        <li><a href="NewsPage/NewsInfo.aspx?id=<%#Eval("id")%>">·<%#Eval("title")%></a><span>[<%#Convert.ToDateTime(Eval("AddTime")).ToString("MM/dd")%>]</span></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <div class="i_item">
                    <div class="i_item_tit"><em>勤工俭学</em><a href="Post/PostList.aspx?ProjectTypeid=<%=Convert.ToInt32(StudentManage.Data.EnumData.ProjectType.勤工助学)%>" class="fr grey">更多</a></div>
                    <div class="i_item_div clearfix">
                        <ul class="lst lst_item">
                            <asp:Repeater ID="RepPostList" runat="server">
                                <ItemTemplate>
                                    <li><a href="Post/PostInfo.aspx?Pid=<%#Eval("id")%>">·[<%#GetTypeName(Eval("TypeID").ToString())%>]<%#Eval("Title")%></a><span>[<%#Convert.ToDateTime(Eval("AddTime")).ToString("MM/dd")%>]</span></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                    <div class="i_item_btm"></div>
                </div>
                <div class="i_item">
                    <div class="i_item_tit"><em>公益活动</em><a href="Post/PostList.aspx?ProjectTypeid=<%=Convert.ToInt32(StudentManage.Data.EnumData.ProjectType.公益活动)%>" class="fr grey">更多</a></div>
                    <div class="i_item_div clearfix">
                        <ul class="lst lst_item">
                            <asp:Repeater ID="RepGYHDList" runat="server">
                                <ItemTemplate>
                                    <li><a href="Post/PostInfo.aspx?Pid=<%#Eval("id")%>">·[<%#GetTypeName(Eval("TypeID").ToString())%>]<%#Eval("Title")%></a><span>[<%#Convert.ToDateTime(Eval("AddTime")).ToString("MM/dd")%>]</span></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                    <div class="i_item_btm"></div>
                </div>
                <div class="i_item">
                    <div class="i_item_tit"><em>志愿活动</em><a href="Post/PostList.aspx?ProjectTypeid=<%=Convert.ToInt32(StudentManage.Data.EnumData.ProjectType.志愿活动)%>" class="fr grey">更多</a></div>
                    <div class="i_item_div clearfix">
                        <ul class="lst lst_item">
                            <asp:Repeater ID="RepZYHDList" runat="server">
                                <ItemTemplate>
                                    <li><a href="Post/PostInfo.aspx?Pid=<%#Eval("id")%>">·[<%#GetTypeName(Eval("TypeID").ToString())%>]<%#Eval("Title")%></a><span>[<%#Convert.ToDateTime(Eval("AddTime")).ToString("MM/dd")%>]</span></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                    <div class="i_item_btm"></div>
                </div>
                <div class="i_item">
                    <div class="i_item_tit"><em>社会实践</em><a href="Post/PostList.aspx?ProjectTypeid=<%=Convert.ToInt32(StudentManage.Data.EnumData.ProjectType.社会实践)%>" class="fr grey">更多</a></div>
                    <div class="i_item_div clearfix">
                        <ul class="lst lst_item">
                            <asp:Repeater ID="RepSHSJList" runat="server">
                                <ItemTemplate>
                                    <li><a href="Post/PostInfo.aspx?Pid=<%#Eval("id")%>">·[<%#GetTypeName(Eval("TypeID").ToString())%>]<%#Eval("Title")%></a><span>[<%#Convert.ToDateTime(Eval("AddTime")).ToString("MM/dd")%>]</span></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                    <div class="i_item_btm"></div>
                </div>
                
            </div>
        	<div class="index_right">
            	<div class="i_side">
                    <div class="i_side_tit"><em>通告信息</em></div>
                    <div class="i_side_div clearfix">
                        <ul class="lst lst_side">
                            <asp:Repeater ID="RepNoticeList" runat="server">
                                <ItemTemplate>
                                    <li><a href="NoticePage/NoticeInfo.aspx?id=<%#Eval("id") %>">·<%#Eval("Title") %></a><span>[<%#Convert.ToDateTime(Eval("Addtime")).ToString("MM/dd")%>]</span></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                    <div class="i_side_btm"></div>
                </div>
                <div class="i_side">
                    <div class="i_side_tit"><em>人气排行</em></div>
                    <div class="i_side_div clearfix" style="padding-bottom:5px">
                        <ul class="lst lst_rank">
                            <asp:Repeater ID="RepHotPostList" runat="server">
                                <ItemTemplate>
                                    <li><em class="<%=Convert.ToInt32(GetXN())<=3?"rank_top":""%>"><%=i.ToString()%></em><a href="/Post/PostInfo.aspx?Pid=<%#Eval("id")%>">[<%#GetTypeName(Eval("Typeid").ToString())%>]<%#Eval("Title")%></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                    <div class="i_side_btm"></div>
                </div>
                <div class="side_con"><p class="orange">联系方式</p><p>010-88991111</p></div>
            </div>
            
        </div>


    </div>
</asp:Content>
